import Mock from 'mockjs'
import homeApi from './mockSeverData/home'
import userApi from './mockSeverData/user'
import permissionApi from './mockSeverData/permission'

// Mock.mock用于拦截对指定路径的请求，并返回模拟的数据
// homeApi.getStatisticalData是一个函数，用于返回模拟的数据内容
Mock.mock('/home/getData', homeApi.getStatisticalData)
Mock.mock('/home/getData', homeApi.getStatisticalData)
Mock.mock(/user\/add/, 'post', userApi.createUser)
Mock.mock(/user\/edit/, 'post', userApi.updateUser)

Mock.mock(/user\/getUser/, 'get', userApi.getUserList)
Mock.mock(/user\/del/, 'post', userApi.deleteUser)
Mock.mock(/permission\/getMenu/, 'post', permissionApi.getMenu)


